import { Hono } from 'hono';
import setServerRoute from "./server/lib/serverRoute.ts";

import setClientRoute from "./server/lib/clientRoute.ts";
import saveFile from "./server/utils/saveFile.ts";
const app = new Hono()

// 清空临时文件
saveFile.clearFiles();

// 设置服务端路由
setServerRoute(app);

// 设置客户端路由
await setClientRoute(app);

export default app;